<%@ page contentType="text/html;charset=UTF-8"%>
<!-- 适用于更新,因为更新的时候需要携带id信息 -->
<input type="hidden" name="id" value="${model.id }"><!-- getId()  -->
<tr>
	<td class="tdLabel">用户名</td>
	<td><input value="${model.username}" name="username" class="easyui-validatebox" 
		required="required" validType='length[8,12]'/></td>
</tr>
<tr>
	<td class="tdLabel">密码</td>
	<td><input id="pwd" name="password" type="password" class="easyui-validatebox"  
		required="required" validType='length[8,12]'>
	</td>
</tr>
<tr>
	<td class="tdLabel">重复密码</td>
	<td><input id="rpwd" name="rpwd" type="password" class="easyui-validatebox"  
		data-options="
			required:true,
			validType:['equals[\'#pwd\']','length[8,12]']
		">
	</td>
</tr>		
<tr>
	<td class="tdLabel">真实姓名</td>
	<td><input value="${model.name}" name="name" class="easyui-validatebox" 
		required="required" /></td>
</tr>
<tr>
	<td class="tdLabel">状态</td>
	<td><select name="status">
			<option value="1" <c:if test="${model.status==1 }">selected="selected"</c:if> >启用</option>
			<option value="0" <c:if test="${model.status==0 }">selected="selected"</c:if> >不启用</option>
		</select>
	</td>
</tr>
<tr>
	<td class="tdLabel">电话号码</td>
	<td><input name="phonenumber" value="${model.phonenumber }" class="easyui-validatebox"  
		data-options="
			required:true,
			validType:'length[11,11]'
		">
	</td>
</tr>		
<tr>
	<td class="tdLabel">角色</td>
	<td><select name="roleId">
			<c:forEach items="${requestScope.roleList}" var="role">
				<option value="${role.id }" <c:if test="${role.id eq query.roleId }">selected="selected"</c:if> >
				${role.name }
				</option>
			</c:forEach>
		</select>
	</td>
</tr>
<tr>
	<td class="tdLabel">头像</td>
	<td><input type="file" name="userImg"></td>
</tr>
<tr>
	<td class="tdLabel">生日</td>
	<td>
		<input value="${model.birthdayString}" class="easyui-datebox" name="birthdayString" />
	</td>
</tr>

